<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./font_2610936_klipawoxlbi/iconfont.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .pic {
            width: 100px;
            height: 100px;
            margin: 90px auto;

        }

        img {
            width: 100px;
            height: 100px;

        }

        .box {
            position: absolute;
            top: 0;
            left: 0;
            background-color: skyblue;
            width: 100%;
            height: 100%;
            z-index: 99;
            display: none;
        }
    </style>
</head>

<body>
    <div class="pic">
        <img src="./images/img.jpg" alt="" class="pic">
    </div>
    <!-- <div class="iconfont icon-suoxiao"></div> -->
    <div class="box">
        <div class="pic">
            <img src="./images/img.jpg" alt="" class="pic">
        </div>
    </div>
</body>
<script>
    // var img = document.querySelector('img')
    // var box = document.querySelector('.box')
    // var flag = false

    // img.onclick = () => {
    //     flag = !flag
    //     if (flag === true) {
    //         img.style.cssText = "height:300px;width:300px;transition:all 1s"
    //         box.style.cssText = "display:block"

    //     } else {
    //         img.style.cssText = "height:100px;width:100px;transition:all 1s"
    //         box.style.cssText = "display:none"
    //     }

    //     console.log(flag)

    // }

</script>

</html>